package com.ruoyi.projectSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目管理对象 tb_project
 * 
 * @author ruoyi
 * @date 2025-11-07
 */
public class TbProject extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 方向id */
    @Excel(name = "方向id")
    private Long directionId;

    /** 负责人id */
    @Excel(name = "负责人id")
    private Long leaderId;

    /** 合作者id */
    @Excel(name = "合作者id")
    private Long partnerId;

    /** 相关成果id */
    @Excel(name = "相关成果id")
    private String relatedAchievementIds;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }

    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }

    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }

    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }

    public void setDirectionId(Long directionId) 
    {
        this.directionId = directionId;
    }

    public Long getDirectionId() 
    {
        return directionId;
    }

    public void setLeaderId(Long leaderId) 
    {
        this.leaderId = leaderId;
    }

    public Long getLeaderId() 
    {
        return leaderId;
    }

    public void setPartnerId(Long partnerId) 
    {
        this.partnerId = partnerId;
    }

    public Long getPartnerId() 
    {
        return partnerId;
    }

    public void setRelatedAchievementIds(String relatedAchievementIds) 
    {
        this.relatedAchievementIds = relatedAchievementIds;
    }

    public String getRelatedAchievementIds() 
    {
        return relatedAchievementIds;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("projectName", getProjectName())
            .append("type", getType())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("directionId", getDirectionId())
            .append("leaderId", getLeaderId())
            .append("partnerId", getPartnerId())
            .append("relatedAchievementIds", getRelatedAchievementIds())
            .append("status", getStatus())
            .toString();
    }
}
